package com.yunxin.core.domain.model.warn;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 告警通知user
 * </p>
 *
 * @author author
 * @since 2024-05-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("warn_user")
@Schema
public class WarnUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户名称
     */
    private String uname;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 0关闭 1开启接受
     */
    @Schema(description = "0关闭 1开启接受")
    private Integer state;

    private Date createTime;

    private Long createBy;

    //0正常 1删除
    @Schema(description = "0正常 1删除")
    private Integer del;

    @Schema(description = "告警类型 1商户告警 2渠道告警")
    @TableField(exist = false)
    private List<Integer> types;
}
